using System;
using System.Collections.Generic;
using System.Text;

namespace Workflows.Components.Reports
{
    public class BitFieldAggregate : AggregateBase
    {
        public BitFieldAggregate(string connStr, string tblName, string colName)
            : base(connStr, tblName, colName)
        {
            this.SummarizeData(connStr, tblName, colName);
        }

        private void SummarizeData(string connStr, string tblName, string colName)
        {
            if (this.Type != AggregateDataType.Bit)
            {
                throw new Exception("This class only supports bit type");
            }
        }

        public bool Min
        {
            get
            {
                return false;
            }
        }

        public bool Max
        {
            get
            {
                return true;
            }
        }
    }
}
